a=[38,98,90,67,89,-1,782,100,0,6,6,76,7,7,7,45]
for x in a:
    if x%3!=0 or x==0:
        continue
    print(x,end='-')